
import 'package:flutter/widgets.dart';
import 'package:shared_preferences/shared_preferences.dart';

class Shared extends StatelessWidget{

  // SharedPreferences preferences = await SharedPreferences.getInstance();

  @override
  Widget build(BuildContext context) {
    MediaQuery.of(context).size.width;
    return Column(

    );
  }

}

// a79f1448300fe17da354eda2852db117
// e0410cde1db833484ab082d924d8a074d67533f3

Future _onClick() async {
  SharedPreferences preferences = await SharedPreferences.getInstance();
  String account = "sdsadasdasdsa";
  preferences.setString('account', account);
  // preferences.re
  print('存储acount为:$account');
  
  new Image.network("");
  new Image(image: NetworkImage(""));
  new NetworkImage("");
  // new Image.network(url: "");


}

abstract class Worker {
  void doWork();//工作者需要工作
}

//工程师
class Engineer extends Worker {
  void doWork() {
    print('工程师在工作');
  }
}

//教师
class Teacher extends Worker {
  void doWork() {
    print('教师在教学');
  }
}

//软件工程师
class SoftwareEngineer extends Engineer {

}

//建筑工程师
class BuildingEngineer extends Engineer {

}

//美术教师
class ArtTeacher extends Teacher {

}

//IT教师
class ITTeacher extends Teacher {

}